package com.kechen.cloud.entity.user;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * 用户表(User)表实体类
 *
 * @author LiRui
 * @since 2025-05-06 12:01:54
 */
@SuppressWarnings("serial")
@TableName("user")
public class User extends Model<User> {

    //主键
    @TableId(type = IdType.AUTO)
    private Integer id;

    //用户名
    private String username;

    //密码
    private String password;

    //是否启用  0-未启用 1-启用
    private Integer enable;

    //创建时间
    private Date createTime;

    //上次登录时间
    private Date lastLoginTime;

    //登录失败次数
    private Integer failTimes;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public Integer getFailTimes() {
        return failTimes;
    }

    public void setFailTimes(Integer failTimes) {
        this.failTimes = failTimes;
    }


}

